package com.jzg.sys.dao.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jzg.sys.dao.entity.SecUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户 Mapper 接口
 * </p>
 *
 * @author lzp
 * @since 2019-02-22
 */
public interface SecUserMapper extends BaseMapper<SecUser> {

    Integer countNewUserPageWithRoleId(@Param("roleId")String roleId,@Param("secUser") SecUser secUser);

    List<SecUser> findNewUserPageWithRoleId(@Param("roleId") String roleId,@Param("secUser") SecUser secUser,
                                            @Param("page") Page<SecUser> page);

    Integer countUserPageExceptRoleId(@Param("roleId")String roleId,@Param("secUser") SecUser secUser);

    List<SecUser> findUserPageExceptRoleId(@Param("roleId") String roleId,@Param("secUser") SecUser secUser,
                                           @Param("page") Page<SecUser> page);
}
